package com.seahorse.youliao.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

/**
 * @ProjectName: youliao
 * @Package: com.seahorse.youliao.config
 * @ClassName: YouLiaoStartConfig
 * @Description: 项目启动配置
 * @author:songqiang
 * @Date:2020-01-06 19:35
 **/
public class YouLiaoStartConfig implements ApplicationRunner {

    private static Logger logger = LoggerFactory.getLogger(YouLiaoStartConfig.class);

    @Override
    public void run(ApplicationArguments args) throws Exception {


        //打印系统相关参数
        logger.info("系统参数---------------------------------------------");
        logger.info("file.separator : " + System.getProperty("file.separator"));
        logger.info("line.separator : " + System.getProperty("line.separator"));
        logger.info("path.separator : " + System.getProperty("path.separator"));
        logger.info("java.home : " + System.getProperty("java.home"));
        logger.info("java.class.version : " + System.getProperty("java.class.version"));
        logger.info("java.class.path : " + System.getProperty("java.class.path"));
        logger.info("java.library.path : " + System.getProperty("java.library.path"));
        logger.info("java.io.tmpdir : " + System.getProperty("java.io.tmpdir"));
        logger.info("java.compiler : " + System.getProperty("java.compiler"));
        logger.info("java.ext.dirs : " + System.getProperty("java.ext.dirs"));
        logger.info("user.name : " + System.getProperty("user.name"));
        logger.info("user.home : " + System.getProperty("user.home"));
        logger.info("user.dir : " + System.getProperty("user.dir"));



    }
}
